<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
   "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ include file="/common/taglibs.jsp"%>
<%@ page contentType="text/html;charset=UTF-8"%>
<%@ page
	import="org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter"%>
<%@ page
	import="org.springframework.security.web.authentication.UsernamePasswordAuthenticationFilter"%>
<%@ page import="org.springframework.security.web.WebAttributes"%>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<%@ include file="/common/meta.jsp"%>
		<script type="text/javascript" src="<c:url value='/scripts/jquery.js'/>" ></script>
		<script type="text/javascript" src="<c:url value='/scripts/appconfig.jsp'/>"></script>	
		<script type="text/javascript" src="<c:url value='/scripts/plugin/validate/jquery.validate.js'/>" ></script>
		<script type="text/javascript" src="<c:url value='/scripts/plugin/validate/additional-methods.js'/>"></script>
		<script type="text/javascript" src="<c:url value='/scripts/plugin/validate/messages_cn.js'/>"></script>
				<script type="text/javascript" src="<c:url value='/scripts/global.js'/>"></script>
<title>东莞市交通质监综合业务系统登录</title>
		<link href="${ctx}/styles/master/layout.css" rel="stylesheet" type="text/css"/>
		<link href="${ctx}/styles/master/screen/login.css" rel="stylesheet" type="text/css"/>
		
		
<style type="text/css">


-->
</style>

<script type="text/javascript" >

       if (top.location !== self.location) {
           top.location=self.location;
       }
		$(document).ready(function() {
			$("#loginForm").validate();
		    if (getCookie("username") != null) {
		        $("#j_username").val(getCookie("username"));
		        $("#j_username").focus();
		    } else {
		        $("#j_username").focus();
		    }

		    var content =$("#collog");
   		 if(content.length){
   		   var height = $(document).height(); 
   			content.height(height-120-25-270);
   		 }
		});
		function refreshCaptcha() {
			$('#captchaImg').hide().attr('src','${ctx}/security/jcaptcha.jpg?' + Math.floor(Math.random()*100)).fadeIn();
		}
	    function saveUsername(theForm) {
	        var expires = new Date();
	        expires.setTime(expires.getTime() + 24 * 30 * 60 * 60 * 1000); // sets it for approx 30 days.
	        setCookie("username",theForm.j_username.value,expires,"<c:url value="/"/>");
	    }
	
    </script>


</head>

<body >
	<div class="page_margins" >
  <div class="page">
    <div id="header" class="main">
    <div>
	</div>
    </div>
    <!-- end: main navigation -->
    <!-- begin: main content area #main -->
    <div id="main">
      <!-- begin: #col1 - first float column -->
      <!-- end: #col1 -->
      <!-- begin: #col3 static column -->
      <div id="colall" role="main" >
        <div id="colall_content" class="clearfix">
           <div id="ognv" >
		   </div>
		    <div id="collog" >
	<form method="post" id="loginForm"
		action="${ctx}/j_spring_security_check"
		onsubmit="saveUsername(this);"
		name="loginForm">
		  <table width="300">
					<tr valign="top" align="left" >
						<td ></td>
						<td height="34" valign="top" width="250" class="STYLE1">用户名: <input type='text' id='j_username' name='j_username'
							class="required"  maxlength="20"  tabindex="1"
							<c:if test="${not empty param.error}">
										value='<%=session.getAttribute(UsernamePasswordAuthenticationFilter.SPRING_SECURITY_LAST_USERNAME_KEY)%>'</c:if> />
						</td>
						<td rowspan="2" align="left"> <input type="image" tabindex="3" style="width: 83px;height: 55px" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image1','','<c:url value="/images/login/0928/logini1.png"/>',1)"
								   src='<c:url value="/images/login/0928/logini.png"/>' name="Image1" id="Image1" /></td>
					</tr>
					<tr align="left">
						<td></td>
						<td height="33"  valign="top"  width="230" class="STYLE1" >密　码: <input type='password' maxlength="12" id='j_password' name='j_password'  tabindex="2"
							class="required" /></td>
					</tr>
					</table>
		</form>
		    </div>
      </div>
      <!-- end: #col3 -->
      <!-- begin: #col3 static column --> 
        <div id="ie_clearing">&nbsp;</div>
        <!-- End: IE Column Clearing -->
      <!-- end: #col3 -->
    </div>
    <!-- end: #main -->
  </div> 
  </div>

  <!-- begin: #footer -->
  <div id="footer" role="contentinfo">
    <div id="footer_content">
    <%@ include file="/common/footer.jsp" %>
    </div>
  </div>

<!-- full skip link functionality in webkit browsers -->
<script src="${ctx}/scripts/plugin/focusfix.js" type="text/javascript"></script>
</body>
</html>

